package com.lean.android.projecttemplate.ui.newpage

import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavOptions
import androidx.navigation.compose.composable

const val NEW_PAGE_ROUTE = "new_page"

fun NavController.navigateToNewPage(navOptions: NavOptions? = null) =
    navigate(NEW_PAGE_ROUTE, navOptions = navOptions)

fun NavGraphBuilder.newPageScreen(navController: NavController) = composable(NEW_PAGE_ROUTE) {
    NewPageScreen(navController)
}

